package tech.aistar.day01;

public class UserTest {
    public static void main(String[] args) {
        User user3=new User(1,"admin");
        user3.setUsername("james");
        //没有private可以用对象名.属性名调用属性
        System.out.println(user3.getUsername());
        System.out.println(user3.getId());

        User user=new User();
        user.setId(100);
        user.setUsername("tom");

        user.setUsername("jack");

        System.out.println(user.getId());
        System.out.println(user.getUsername());

    }
}
